#ifndef _UISTATICCONTROL_
#define _UISTATICCONTROL_

#include "../GUI/GUIControl.h"

class UISTATICCONTROL : public CONTROL {
private:
	LPD3DXFONT _pFont;
	DWORD      _fontColor;

	WCHAR*     _caption;

	DWORD      _dwFontPosition;
	
protected:
	VOID SetFontPosition(DWORD dwFontPosition) { _dwFontPosition = dwFontPosition; }

public:
	UISTATICCONTROL(DWORD dwID, POINT point, RECT rect);
	~UISTATICCONTROL(VOID);

	virtual VOID Render(VOID);
	virtual LRESULT WINAPI MsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

	VOID RegisterEvent(void (*fp)(), EVENT _event);

	// Set
	VOID SetFont(LPWSTR pFaceName, INT fontHeight, BOOL bItalic);
	VOID SetCaption(WCHAR* caption);
	VOID SetClearCaption(VOID);
	VOID SetFontColor(DWORD dwColor) { _fontColor = dwColor; }

	VOID OnResetDevice(VOID) { _pFont->OnResetDevice(); }
};

#endif